home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Biomorph 0.77 / Biomorph src / morphutils.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-28  |  738 b   |  31 lines  |  [TEXT/ALFA]

  1. /***********************
  2. ** morphutils.c
  3. **
  4. ** This file has the utilities/routines to manipulate
  5. ** the 'morf' resources.  Called from main().
  6. ************************/
  7.  
  8. #include <MacHeaders>
  9. #include "globals.h"
  10. #include "morphutils.h"
  11.  
  12. void MorphAddRes(void)  // adds a resource to the "Type" menu & program file
  13. {
  14. }
  15.  
  16.  
  17. void MorphDelRes(void)  // deletes a rez from the "Type" menu & program file
  18. {
  19. }
  20.  
  21.  
  22. void MorphClearProc(void)  // frees the current procedure, if a resource
  23. {
  24.     if ( (gMorphProcH != NULL) &&        // if it points to *something*...
  25.         (gMorphProcH != gDefaultProcH)) // AND it's not the builtin, then...
  26.     {
  27.         HUnlock((Handle)gMorphProcH);
  28.         ReleaseResource((Handle)gMorphProcH);
  29.         gMorphProcH = NULL;
  30.     }
  31. } // MorphClearProc()